
package com.fire.web.modules.all.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

import java.io.Serializable;

/**
 * 
 *
 * @author aspire
 * @Date 2018-12-06 19:03
 */
@TableName("t_abc_sequence")
public class Sequence extends Model<Sequence> {

    private static final long serialVersionUID = 1L;

    /**
     * Name
     * 
     */
    @TableId(value = "name", type = IdType.INPUT)
    private String name;
    /**
     * Currentval
     * 
     */
    private Integer currentval;
    /**
     * Increment
     * 
     */
    private Integer increment;
    /**
     * Minval
     * 
     */
    private Integer minval;
    /**
     * Maxval
     * 
     */
    private Integer maxval;
    /**
     * 前缀
     * 
     */
    private String prefix;
    /**
     * 描述
     * 
     */
    private String desc;

    public String getName() {
           return name;
    }

    public void setName(String name) {
     	this.name = name;
    }

    public Integer getCurrentval() {
           return currentval;
    }

    public void setCurrentval(Integer currentval) {
     	this.currentval = currentval;
    }

    public Integer getIncrement() {
           return increment;
    }

    public void setIncrement(Integer increment) {
     	this.increment = increment;
    }

    public Integer getMinval() {
           return minval;
    }

    public void setMinval(Integer minval) {
     	this.minval = minval;
    }

    public Integer getMaxval() {
           return maxval;
    }

    public void setMaxval(Integer maxval) {
     	this.maxval = maxval;
    }

    public String getPrefix() {
           return prefix;
    }

    public void setPrefix(String prefix) {
     	this.prefix = prefix;
    }

    public String getDesc() {
           return desc;
    }

    public void setDesc(String desc) {
     	this.desc = desc;
    }

    @Override
    protected Serializable pkVal() {
           return this.name;
    }

    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this);
    }
}
